package com.xframe.domain.role;


import com.xframe.xdal.core.annotation.TableType;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XTable;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain=true)
@XTable(value = "v_menuforbutton", label = "用户菜单按钮查询",tableType = TableType.View)
public class MenuForButton {

    /**
     * 菜单表ID
     */
    @XColumn(name = "MENU_ID",primaryKeyFlag = true,desc = "菜单ID")
    private Long menuId;

    /**
     * 用户ID
     */
    @XColumn(name = "USER_ID",desc = "用户ID")
    private Long userId;

    /**
     * 系统编码
     */
    @XColumn(name = "SYS_CODE", uniqueFlag = true,desc = "系统编码",length = 20)
    private String sysCode;
    /**
     * 菜单编码
     */
    @XColumn(name = "menu_code", uniqueFlag = true,desc = "菜单编码",length = 20)
    private String code;

    /**
     * 菜单类型
     */
    @XColumn(name = "menu_type",desc = "菜单类型",length = 20)
    private String menuType;

    @XColumn(name = "parent_id",desc = "菜单父ID")
    private Long parentId;

    /**
     * 按钮编码
     */
    @XColumn(name = "button_code", uniqueFlag = true,desc = "按钮编码",length = 50)
    private String buttonCode;
}
